package com.lx.gulimall.auth.feign;

import com.lx.common.utils.R;
import com.lx.gulimall.auth.vo.SocialUser;
import com.lx.gulimall.auth.vo.UserLoginVo;
import com.lx.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lixun Email:lx3027@126.com
 * @create 2021-08-05 11:26
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth/login")
    R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;

}
